package dataPersistence.dao;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;

import common.Result;
import common.ValueResult;

import dataPersistence.dto.ProductContainerDTO;
import dataPersistence.dto.ProductDTO;

public class Product_Serialized_DAO implements IProductDAO {

	@Override
	public Result add(ProductDTO dto) {
		Result result = new Result();
		result.setStatus(true);
		return result;
	}

	@Override
	public Result update(ProductDTO dto) {
		
		return add(dto);
	}

	@Override
	public Result delete(ProductDTO dto) {
		return add(dto);
	}

	@Override
	public ValueResult<Set<ProductDTO>> getAllProducts() {
		ValueResult<Set<ProductDTO>> result= new ValueResult<Set<ProductDTO>>();
		result.setValue(new HashSet<ProductDTO>());
		return result;
	}

	@Override
	public Result addProductToContainer(ProductDTO product, String containerID) {
		return add(product);
	}

	@Override
	public Result removeProductFromContainer(ProductDTO product,
			String containerID) {
		return add(product);
	}

	@Override
	public Result updateProductInContainer(ProductDTO product,
			String oldContainer, String newContainer) {
		return add(product);
	}

	@Override
	public ValueResult<HashMap<ProductContainerDTO, ArrayList<ProductDTO>>> getAllContainersByProducts()
	{
		ValueResult<HashMap<ProductContainerDTO,ArrayList<ProductDTO>>> result = 
			new ValueResult<HashMap<ProductContainerDTO,ArrayList<ProductDTO>>>();
		result.setStatus(true);
		result.setValue(new HashMap<ProductContainerDTO, ArrayList<ProductDTO>>());
		return result;
	}

	@Override
	public Result removeProductFromSystem(ProductDTO dto) {
		return add(dto);
	}

}
